﻿using BellAssistant.Model.Tables;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BellAssistant.DSS
{
    public interface IDataSourceService
    {
        bool SaveGoods(Goods good);

        List<Goods> GetAllGoods();

        bool SaveCategory(ProductCategory product, string newName);

        List<ProductCategory> GetAllProductCategory();
        bool DelProductCategory(int id);

        string SaveBrand(string brandName);

        List<Brand> GetAllBrand();

        string SaveExpressType(ExpressType expressType);

        List<ExpressType> GetAllExpressType();

        List<PromotionType> GetAllPromotionType();

        string SavePromotionType(PromotionType promotionType);
        
        int GetProductCategoryIDByName(string categoryName);

        int GetBrandIDByName(string brandName);

        int GetExpressTypeIDByName(string expressTypeName);

        int GetPromotionIDByName(string promotionName);

    }
}
